﻿using HuiZe.education.View;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace Paint
{
    public class BrushSettings : NotifyPropertyChanged
    {
        private SolidColorBrush _color;
        private double _strokeThickness;

        public BrushSettings()
        {
            _color = Brushes.Black;
            _strokeThickness = 1;
        }

        public SolidColorBrush Color
        {
            get { return this._color; }
            set
            {
                if (this._color != value)
                {
                    this._color = value;
                    OnPropertyChanged("Color");

                    BeginClass27.settings.Color = this._color;
                }
            }
        }

        public double StrokeThickness
        {
            get { return this._strokeThickness; }
            set
            {
                if (this._strokeThickness != value)
                {
                    this._strokeThickness = value;
                    OnPropertyChanged("StrokeThickness");
                }
            }
        }

    }
}
